<div ng-controller="retailerExchangeCtrl
">
    <div class="form-group">
        <label class="control-label" for="textinput">商家:</label>
        <input list="resultList" type="text" class="" ng-model="filter_retailer_name" />
        <datalist id="retailer_data_list">
            <option ng-repeat="re in retailers" value="{{re.retailer_name}}"></option>
        </datalist>
        <label class="control-label" for="textinput">66编号:</label>
        <input type="text" class="" ng-model="filter_retailer_code" />
        <label class="control-label" for="textinput">代金券编号:</label>
        <input type="text" class="" ng-model="filter_card_no" />

        <label class="control-label" for="textinput">结算状态:</label>

        <select id="voucher_status_list" ng-model="filter_status">
            <option ng-repeat=" status in voucher_status" value="{{status.value}}">{{status.name}}</option>
        </select>
        <br />
        <label for="5" class="control-label">交易开始日</label>
        <input type="text" id="startDate" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd"  ng-model="filter_start_time"  required >
        <label for="6" class="control-label">交易结束日</label>
        <input type="text" id="endDate" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd" ng-model="filter_end_time"  required >
        <label for="7" class="control-label">结算开始日</label>
        <input type="text" id="exStartDate" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd"  ng-model="filter_ex_start_time"  required >
        <label for="8" class="control-label">结算结束日</label>
        <input type="text" id="exEndDate" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd" ng-model="filter_ex_end_time"  required >
        <button type="button" class="btn-primary btn-sm  " ng-click="filter()">搜索</button>
    </div>

    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">
            <mutau>
                <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
                    on-select-page="selectPage(page)">
                    <li ng-class="{disabled: noPrevious()}"><a ng-click="selectPrevious()">&laquo;</a>

                    </li>
                    <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                            ng-click="selectPage(page)">{{page}}</a>

                    </li>
                    <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

                    </li>
                    <li ng-show="currentPage>6"><a ng-click="selectPage(1)">首页</a>

                    </li>
                </ul>
            </mutau>
            <table class="table table-condensed">
                <thead>
                <tr>
                    <th>66编号</th>
                    <th>商家店名</th>
                    <th>小区名称</th>
                    <th>获得人昵称</th>
                    <th>代金券编号</th>
                    <th>代金券金额</th>
                    <th>生成日期</th>
                    <th>交易日期</th>
                    <th>结算日期</th>
                    <th>结算状态</th>
                    <th>币面结算金额</th>
                    <th>商家奖励金额</th>
                    <th>结算金额</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="result in resultList">
                    <th>{{result.code}}</th>
                    <th>{{result.retailer_name}}</th>
                    <th>{{result.community_name}}</th>
                    <th>{{result.info.nickName}}</th>
                    <th>{{result.card_no}}</th>
                    <th>{{result.voucher_val}}</th>
                    <th>{{result.genTime|date:"yyyy-MM-dd HH:mm"}}</th>
                    <th>{{result.create_time|date:"yyyy-MM-dd HH:mm"}}</th>
                    <th>{{result.close_time|date:"yyyy-MM-dd HH:mm"}}</th>
                    <th><span ng-show="result.status==0">未结算</span><span ng-show="result.status==1">已结算</span></th>
                    <th>{{result.deal_price}}</th>
                    <th>{{result.retailer_price}}</th>
                    <th>{{result.deal_price+result.retailer_price}}</th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

